<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="description" content="清镇安监卫士">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>结果</title>

    <style type="text/css">
        body, div, p, h1, h2, h3, h4, h5, h6, li, span, label, a {
            font-family: "Arial",
            "Microsoft YaHei", "微软雅黑",
            "SimHei", "黑体",
            "STHeiti", "华文黑体",
            "NSimSun", "新宋体",
            "SimSun", "宋体",
            "sans-serif";
        }
    </style>

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/bootstrap.css">
    <link rel="stylesheet" href="<%=basePath%>css/lib/weui/weui.min.css">
</head>
<body>
<div class="weui-msg">
    <c:choose>
        <c:when test="${resultVo.resultCode eq 0}">
            <div class="weui-msg__icon-area">
                <i class="weui-icon-success weui-icon_msg"></i>
            </div>

            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">操作成功</h2>

                <p class="weui-msg__desc">${resultVo.resultMsg}</p>
            </div>

            <c:if test="${not empty resultVo.result}">
                <div class="weui-msg__opr-area">
                    <p class="weui-btn-area">
                        <a href="${resultVo.result}" class="btn btn-success btn-lg btn-block">返回</a>
                    </p>
                </div>
            </c:if>
        </c:when>
        <c:otherwise>
            <div class="weui-msg__icon-area">
                <i class="weui-icon-warn weui-icon_msg"></i>
            </div>

            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">操作失败</h2>

                <p class="weui-msg__desc">${resultVo.resultMsg}</p>
            </div>

            <c:if test="${not empty resultVo.result}">
                <div class="weui-msg__opr-area">
                    <p class="weui-btn-area">
                        <a href="${resultVo.result}" class="btn btn-danger btn-lg btn-block">返回</a>
                    </p>
                </div>
            </c:if>
        </c:otherwise>
    </c:choose>
</div>

<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/bootstrap/dist/js/bootstrap.js"></script>
</body>
</html>